//
//  DocumentListCell.m
//  FileDemo
//
//  Created by 徐小龙 on 2019/6/21.
//  Copyright © 2019 徐小龙. All rights reserved.
//

#import "DocumentListCell.h"
#import "DocumentModel.h"

@interface DocumentListCell()
@property (weak, nonatomic) IBOutlet UIImageView *myImageView;
@property (weak, nonatomic) IBOutlet UILabel *myTextLabel;
@end

@implementation DocumentListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)configCellWith:(DocumentModel *)documentModel{
    self.myImageView.image = [UIImage imageNamed:documentModel.documentIconName];
    self.myTextLabel.text = documentModel.documentName;
}
@end
